package com.sangmo.fts.common.authority.meta;

import com.sangmo.fts.common.authority.Rights;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/*
* 参照项目实体类权限
* */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Documented
@Repeatable(value = AuthorizeRefAnns.class)
public @interface AuthorizeRefAnn {
    String name() default "";
    String dependsOn() default "";
    Class resource() default Void.class;
    String anyPerms() default "";
    String indicator() default "id";
    int refRights() default Rights.READ;
    int anyRights() default Rights.READ;
}
